<?php

if (!defined('BASEPATH'))
	exit('No direct script access allowed');
/*
 * Record
 * @package	Codeigniter
 * @author	Chhing Chhing
 * @link	abc@gmail.com
 */

class Personal extends PNC_Controller {

	public function __construct() {
		parent::__construct();
		$this->load->model(array('mod_staff'));
	}

	/*
	 * Index
	 * @access public
	 * @return void
	 */

	public function index() {
		redirect('personal/per_info/');
	}

	
function per_info(){
    if ($this->check_session()) {
			$data['title'] = "Personal Information";
			$session_id = $this->session->userdata('id_user');
			$data['datas'] = $this->mod_staff->selectdata($session_id);
			$data['total'] = $this->mod_staff->total($session_id);
			$this->view_main($data);
		} else {
			redirect('main/');
		}
}
}
